package model.trans_matrix;

public class TransitionMatrix {
	private double[][] transMatrix;
	private int sideSize;
	
	public TransitionMatrix(int rows) {
		sideSize = rows*rows;
		transMatrix = new double[sideSize][sideSize];
	}
	public int getSideSize() {
		return sideSize;
	}
	public double getMatrixElement(int row, int column){
		return transMatrix[row][column];
	}
	public void setMatrixElement(int row, int column, double value){
		if(row>=0&&column>=0&&row<sideSize&&column<sideSize){
			transMatrix[row][column]=value;
		}		
	}
	public void resetMatrix(){
		transMatrix = new double[sideSize][sideSize];
	}
}
